﻿@model Dictionary<string, string>
@{
    string text = Model["Text"];
    string ngModel = Model["Model"];
    string name = Model["Name"];
    string disabled = Model.ContainsKey("Disabled") ? Model["Disabled"] : string.Empty;
}
<label>@text</label>
<div class="form-group input-group">
    <input ng-model="@ngModel" name="@name" type="text" class="form-control" datepicker-popup="y/MM/dd" is-open="opened['@name']" disabled />
    <span class="input-group-btn">
        <button class="btn btn-default" type="button" ng-click="open($event, '@name')" style="height: 28px; padding-top: 3px" ng-disabled="@disabled">
            <i class="fa fa-calendar" name="@name"></i>
        </button>
    </span>
</div>